package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.PollingPictureDao;
import com.easyweb.model.PollingPicture;
import com.easyweb.service.PollingPictureService;

@Service
public class PollingPictureServiceImpl implements PollingPictureService{
	
	@Autowired
	private PollingPictureDao pollingPictureDao;

	public int insertPollingPicture(PollingPicture pollingPicture) {
		return pollingPictureDao.insertPollingPicture(pollingPicture);
	}

	public int deletePollingPictureById(Map<String, Object> map) {
		return pollingPictureDao.deletePollingPictureById(map);
	}

	public int updatePollingPicture(PollingPicture pollingPicture) {
		return pollingPictureDao.updatePollingPicture(pollingPicture);
	}

	public List<PollingPicture> getPollingPictures(Map<String, Object> map) {
		return pollingPictureDao.getPollingPictures(map);
	}

	public PollingPicture getPollingPictureById(Map<String, Object> map) {
		return pollingPictureDao.getPollingPictureById(map);
	}

	public List<PollingPicture> getIndexPollingPictures(Map<String, Object> map) {
		return pollingPictureDao.getIndexPollingPictures(map);
	}

}
